<?php
namespace Common\Model;

/**
 * 分销渠道静态资源表
 * @modify trainyao 2016-01-09 创建
 * @index none
 */

Class ChannelModel extends \Common\Model\BaseModel
{
    protected $trueTableName = 'bp_channel';

    /**
     * 获取所有分销渠道
     * @modify trainyao 2016-01-09    创建
     * @return array   分销渠道信息数组
     */
    public function getInfo() {
        $option = array(
            'isdelete' => NOT_DELETE,
        );

        $data = $this->where($option)->select();
        return empty($data) ? array() : $data;
    }

    /**
     * 返回全部数据
     * @modify trainyao 2016-05-19    创建
     */
    public function getAll() {
        $option = array(
            'isdelete' => NOT_DELETE,
        );

        return $this->where($option)->select();
    }

}